<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
</script>

<template>
  <div>
    <RouterLink to="/">首页</RouterLink>
    <RouterLink to="/about">登录页面</RouterLink>
    <RouterLink to="/news">新闻页面</RouterLink>
    <RouterLink to="/demo1">Demo1</RouterLink>
  </div>
  <!--用来占位-->
  <RouterView />
</template>

<style scoped>
  a{
    margin-right:10px;
  }
</style>
